Package-level declarations
Core classes used by all the SDK components.
Types
Link copied to clipboard
A reference to a Mobile Payments SDK Callback that can be cleared to prevent memory leaks. It is recommended to clear the reference any time a lifecycle destroy event occurs (e.g. android.app.Activity.onDestroy or ViewModel.onCleared()
). It can also be cleared when the Callback is no longer needed and should not be invoked.
Link copied to clipboard
class ErrorDetails(val category: String, val code: String, val detail: String, val field: String? = null)
Detailed errors to explain a failure. Typically these are returned from Square's Connect v2 REST APIs, and are documented here. However, there may be conditions where an error is generated by the SDK itself, for example to explain errors that prevented server or cardreader communication.